using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;

namespace Tools.UI
{
    [AddComponentMenu("Tools/UI/OnPointerDownEvent")]
    public class OnPointerDownEvent : MonoBehaviour,IPointerDownHandler
    {
        [SerializeField] UnityEvent<PointerEventData> onPointerDownEvent;

        public UnityEvent<PointerEventData> PointerEvent => onPointerDownEvent;
        
        void Start()
        {
            
        }

        void IPointerDownHandler.OnPointerDown(PointerEventData eventData)
        {
            onPointerDownEvent?.Invoke(eventData);
        }
    }
}
